import request from '@/utils/request'
export default class index {
  // 扣除金币列表
  static fetchList(params: any = {}) {
    return request({
      url: 'api/finance/minus_kk_value',
      method: 'get',
      params
    })
  }
  // 扣除金币
  static createMinusKkValue(data: any = {}) {
    return request({
      url: 'api/finance/minus_kk_value',
      method: 'post',
      data
    })
  }
  // 发放金币列表
  static fetchIncreaseList(params: any = {}) {
    return request({
      url: 'api/finance/increase_kk_value',
      method: 'get',
      params
    })
  }
  // 发放金币
  static createIncreaseKkValue(data: any = {}) {
    return request({
      url: 'api/finance/increase_kk_value',
      method: 'post',
      data
    })
  }
  static fetchPayRuleList(params: any = {}) {
    return request({
      url: 'api/finance/pay_rule_list',
      method: 'get',
      params
    })
  }
  static updatePayRule(params: any = {}) {
    return request({
      url: 'api/finance/update_pay_rule',
      method: 'post',
      params
    })
  }
  static delPayRule(params: any = {}) {
    return request({
      url: 'api/finance/del_pay_rule',
      method: 'post',
      params
    })
  }
}
